package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.site.entity.TSitedtl;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 可售数量维护Entity
 * @author mash
 * @version 2017-01-23
 */
public class TCargotypeForsale extends DataEntity<TCargotypeForsale> {
	
	private static final long serialVersionUID = 1L;
	private String forsaleid;		// 主键
	private Office office;		// 客运公司
	private TCargotype cargotype;		//车型
	private String forsalenum;		// 可售数量
	private String totalnum;		// 总数量
	@JsonIgnore
	private TSitedtl departcity;		// 出发城市
	@JsonIgnore
	private TSitedtl destcity;		// 到达城市
	private List<Office> officeList;//车队集合
	private Double lowestAirPrice;//接送机计算的价格
	@JsonIgnore
	private Integer disLevel;//距离等级
	
	public Integer getDisLevel() {
		return disLevel;
	}

	public void setDisLevel(Integer disLevel) {
		this.disLevel = disLevel;
	}

	public TSitedtl getDepartcity() {
		return departcity;
	}

	public void setDepartcity(TSitedtl departcity) {
		this.departcity = departcity;
	}


	public TSitedtl getDestcity() {
		return destcity;
	}

	public Double getLowestAirPrice() {
		return lowestAirPrice;
	}

	public void setLowestAirPrice(Double lowestAirPrice) {
		this.lowestAirPrice = lowestAirPrice;
	}

	public void setDestcity(TSitedtl destcity) {
		this.destcity = destcity;
	}


	public TCargotypeForsale() {
		super();
	}

	public TCargotypeForsale(String id){
		super(id);
	}

	public String getForsaleid() {
		return forsaleid;
	}

	public void setForsaleid(String forsaleid) {
		this.forsaleid = forsaleid;
	}
	
	public String getForsalenum() {
		return forsalenum;
	}

	public void setForsalenum(String forsalenum) {
		this.forsalenum = forsalenum;
	}
	
	public String getTotalnum() {
		return totalnum;
	}

	public void setTotalnum(String totalnum) {
		this.totalnum = totalnum;
	}


	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public List<Office> getOfficeList() {
		return officeList;
	}

	public void setOfficeList(List<Office> officeList) {
		this.officeList = officeList;
	}

	public TCargotype getCargotype() {
		return cargotype;
	}

	public void setCargotype(TCargotype cargotype) {
		this.cargotype = cargotype;
	}
	
}